package data.structure.linear.linkedList.circle;

/**
 * @Author douhy
 * @description 循环链表测试类
 * @date 22/01/18
 */
public class Client {
    public static void main(String[] args) {
        SingleCircleLinkedList<Integer> singleCircleLinkedList = new SingleCircleLinkedList<>();
        singleCircleLinkedList.add(0,0);
        singleCircleLinkedList.add(1,1);
        singleCircleLinkedList.add(2,2);
        singleCircleLinkedList.add(3,3);
        singleCircleLinkedList.add(4,4);

        singleCircleLinkedList.remove(0);
        System.out.println(singleCircleLinkedList);

        singleCircleLinkedList.add(0,111);
        System.out.println(singleCircleLinkedList);
    }
}
